<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="root">
    {{true ? 'abc' : 'def'}}
    {{1+1}}
    {{foo()}}
    {{/\d/.test(100)}}
    {{(function(){var x = 100})()}}

    <div v-text="title" v-bind:[variable]="abc"></div>
    <div v-html="title"></div>
  </div>
  <script type="module">
    Vue.config.productionTip = false

    var vm = new Vue({
      el: '#root',

      data: {
        title: '<iframe src="http://duitang.com" />',
        abc: 'aabbcc',
        variable: 'y'
      },

      methods: {
        foo() {
          return 'foo content'
        }
      },
    })

    // let v = 'xxxxx'

    // let obj = {
    //   [v]: 100,
    //   y: 200
    // }
    // console.log(obj)
  </script>
</body>
</html>